<?php
use common\service\StaticService;
use shopend\assets\ShopAsset;
use common\service\GlobalUrlService;
use common\service\CommonService;

StaticService::includeAppJsStatic(GlobalUrlService::buildShopStaticUrl('/backend/shop/shop-info.js'),ShopAsset::class);
StaticService::includeAppCssStatic(GlobalUrlService::buildShopStaticUrl('/css/shop/shop-info.css'),ShopAsset::class);
?>

<div class="layui-card">
    <div class="layui-card-header">商家信息</div>
    <div class="layui-card-body">
        <div class="shop-info layui-row">
            <div class="layui-col-md3 layui-col-xs12 user_right">
                <div class="layui-upload-list">
                    <img src="<?= $this->params['current_user']['shop_logo']?GlobalUrlService::buildCdnUrl($this->params['current_user']['shop_logo']):GlobalUrlService::buildStaticUrl('img//header.png')?>" class="layui-upload-img layui-circle userFaceBtn userAvatar user_img" id="userFace">
                </div>
                <label for="logo" class="layui-btn userFaceBtn"><i class="layui-icon">&#xe67c;</i>更换头像</label>
                <input type="file" name="" id="logo" />
                <input type="hidden" name="shop_logo" id="shop_logo" value="">
            </div>
            <div class="layui-col-md6 layui-col-xs12">
                <ul>
                    <li>
                        <span class="title">店铺名称</span>
                        <div class="item"><?= $row['shop_name']?></div>
                    </li>
                    <li>
                        <span class="title">登录账号</span>
                        <div class="item"><?= $row['user_account']?></div>
                    </li>
                    <li>
                        <span class="title">店铺管理人姓名</span>
                        <div class="item"><?= $row['administration']?></div>
                    </li>
                    <li>
                        <span class="title">店铺管理人邮箱</span>
                        <div class="item"><?= $row['admin_email']?></div>
                    </li>
                    <li>
                        <span class="title">店铺管理人身份证号</span>
                        <div class="item"><?= $row['join_card_no']?></div>
                    </li>
                    <li>
                        <span class="title">商家客服电话</span>
                        <div class="item"><?= $row['customer_phone']?></div>
                    </li>
                    <li>
                        <span class="title">管理人身份证正面照片</span>
                        <div class="item img"><img src="<?= GlobalUrlService::buildCdnUrl($row['join_card1_pic'])?>" alt="" class="default"></div>
                    </li>
                    <li>
                        <span class="title">管理人身份证反面照片</span>
                        <div class="item img"><img src="<?= GlobalUrlService::buildCdnUrl($row['join_card2_pic'])?>" alt="" class="default"></div>
                    </li>
                    <li>
                        <span class="title">管理人手持身份证照片</span>
                        <div class="item img"><img src="<?= GlobalUrlService::buildCdnUrl($row['join_card3_pic'])?>" alt="" class="default"></div>
                    </li>
                </ul>
            </div>
        </div>  
    </div>
    <div class="btns">
        <!-- <a href="#" class="layui-btn layui-btn-primary">返回</a> -->
    </div>
</div>
